package com.en.controller;

import com.en.response.R;
import com.en.service.InfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: infoController
 * Package: com.tencent.wxcloudrun.controller
 * Description:
 *
 * @Date: 2023/11/19 08:07
 * @Author: wht
 */
@Slf4j
@RestController
@RequestMapping("/info")
public class InfoController {
    @Autowired
    private InfoService infoService;

    @GetMapping("/get_app_version")
    public <T> R<T> getAppVersion() {
        String appVersion = infoService.getAppVersion();
        return R.successData(appVersion);
    }

}
